package com.titanrise.crm.domain.dto;

import com.titanrise.crm.domain.model.enums.MessageStatus;
import com.titanrise.crm.environment.annotation.TableColumn;
import com.titanrise.crm.environment.annotation.TableID;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
public class MessageDto {
    @TableID("message_id")
    private String id;
    @TableColumn("sender_id")
    private String senderId;
    @TableColumn("sender_name")
    private String senderName;
    @TableColumn("receiver_id")
    private String receiverId;
    @TableColumn("receiver_name")
    private String receiverName;
    @TableColumn("content")
    private String content;
    @TableColumn("status")
    private MessageStatus status;
    @TableColumn("create_time")
    private LocalDateTime createTime;
    @TableColumn("read_time")
    private LocalDateTime readTime;
}
